package com.ktjy.pojo.dao;


import com.ktjy.pojo.entity.Page;
import com.ktjy.pojo.entity.TUser;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface UserMapper {
    //统计用户数量
    public int count();

    //查询用户列表
    public List<TUser> getUserList();

    //根据用户姓名查询
    public List<TUser> getUserName(String userName);

    //多条件查询
    //public List<User> getUserListPojo(User user);

    //添加
    public  int insert(TUser user);

    //修改
    public  int Update(TUser user);

    //删除
    public  int delete(int id);

    //查询用户列表(分页查询)
    public List<TUser> selectList(@Param("userName")String userName,@Param("roleId") Integer roleId);

    //内查询两表
    public List<TUser> selectId(@Param("id")int id);

    //choose标签
    public List<TUser> selectListByChoose(@Param("userName")String userName,@Param("roleId") Integer roleId,@Param("loginName")String loginName,@Param("createTime") Date createTime);

}
